package com.my.dao;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Order;

public interface OrderDAO {

	boolean addOrder(Order order) throws Exception;

	boolean editOrder(Order order) throws Exception;

	Order getOrderById(Class<Order> c, Integer id) throws Exception;

	boolean removeOrder(Integer id) throws Exception;

	BigInteger getTotalOrderRecords() throws Exception;

	List<Order> getAllOrderByPage(int pageindex, int pagesize) throws Exception;

	BigInteger searchTotalOrderRecords(Order order) throws Exception;

	List<Order> searchOrderByPage(int pageindex, int pagesize, Order order)
			throws Exception;

	BigInteger getTotalOrderRecords2() throws Exception;

	List<Order> getAllOrderByPage2(int pageindex, int pagesize)
			throws Exception;

	BigInteger searchTotalOrderRecords2(Order order) throws Exception;

	List<Order> searchOrderByPage2(int pageindex, int pagesize, Order order)
			throws Exception;
}
